#include "ui_npcWindow.h"
#include "npc.h"
#include <QWidget>
#include <QString>
#include <QList>
#include <QTimer>
#include <QCloseEvent>

class npcWindow:public QWidget, public Ui::npcWindow{
	Q_OBJECT
	QList<npc *> proxies;
	npcModel * model;
	QString _host;
	QString _keyword;
	QTimer * freshTimer;
	virtual void readSettings();
	virtual void saveSettings();
	bool extract(const QByteArray &);
	void listModified();
    public:
	npcWindow(QWidget * parent = 0);
	~npcWindow();
	void closeEvent(QCloseEvent * event);
    public slots:
	void on_start_clicked();
	void on_clear_clicked();
	void on_set_clicked();
	void on_save_clicked();
	void on_quit_clicked();
	void on_load_clicked();
};


